package com.runshu.newsmartark.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.runshu.newsmartark.R;
import com.runshu.newsmartark.entity.PhysicalEntity;
import com.runshu.newsmartark.entity.WarnManagerBean;

import java.util.List;

/**
 * Demo class
 *
 * @author yu
 * @date 2020/10/26
 * @decs：
 */

public class PhysicalManagerAdapter extends BaseQuickAdapter<PhysicalEntity.ContentBean, BaseViewHolder> {
    public PhysicalManagerAdapter( @Nullable List<PhysicalEntity.ContentBean> data) {
        super(R.layout.item_physica_info, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PhysicalEntity.ContentBean item) {
        helper.setText(R.id.item_tv_no,"订单号："+item.getOrderNo());
        helper.setText(R.id.item_tv_company, item.getExpCompanyName()+"|"+item.getExpNo());
        helper.setText(R.id.item_tv_state, item.getDeliveryStatusDesc());
        helper.setText(R.id.tv_pro_name, item.getDeliveryName());
        helper.setText(R.id.tv_pro_date, item.getDeliveryTime());

    }
}